<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/tixianList.css" />
        <script src="js/jquery-3.3.1.min.js"></script>
         <script src="js/config.js"></script>
         <script src="js/toast.js"></script>
		<title>历史提现</title>
	</head>
	<body>
		<div class="page">
			<div class="top">
				
				<div>
					<h4>历史提现</h4>
				</div>
			</div>
			
			
			<div class="content">
				<div class="none">
					<span>暂无提现记录</span>
				</div>
				<!--<div class="list">
							<div class="left">
								<div class="img">
									<img class="imgIcon" src="./images/2.jpg" alt="" />
								</div>
								
								<div class="desc">
									<div class="name">
										塑料卡老地方
									</div>
									
									<div class="time">
										2019-03-22 18:16:34
									</div>
								</div>
							</div>
							
							<div class="right">
								<div class="money">2.3元</div>
							</div>
						</div>-->
				
				
			</div>
			
			
		</div>
		
		
		
		<script>
			
			//请求历史提现数据
			
			$.ajax({
				type:"get",
				url:host+"/buss/account/log/list?logtype=-1",
				success:function(res){
					console.log(JSON.stringify(res))
					if(res.data.length){
					var leng = res.data.length;
					var str = '';
					$(".none").eq(0).css({display:'none'});
					for(let i = 0;i < leng;i++){
						
							var timeText = res.data[i].createDate;
							var tips = res.data[i].remarks;
							var name = res.data[i].userName;
							var money = res.data[i].price;
							if(name !== null){
                                name = res.data[i].userName;
							}else{
                                name = "";
							}
							
							
							
								var img="./images/avatar.png";
							
						
						str+='<div class="list"><div class="left">'+
								'<div class="img">'+
									'<img class="imgIcon" src='+img+' alt="" />'+
								'</div>'+
								'<div class="desc">'+
									'<div class="name">'+tips+
									'</div>'+									
									'<div class="time">'+timeText+	
									'</div>'+
									'<div class="taskName">'+name+
									'</div>'+
								'</div>'+
							'</div>'+
							'<div class="right">'+
								'<div class="money">'+money +'元'+'</div>'+
							'</div></div>'
						
						}
							
							$(".content").html(str);
							
						}else{
							$(".none").eq(0).css({display:'block'});
						}
							
					
						
						
					
					
				},
				
				error:function(){
					console.log("error");
				}
			});
			
			
			
		</script>
		
		
	</body>
</html>
